package custom;



import java.util.Arrays;
import java.util.Collection;

import javax.faces.component.FacesComponent;
import javax.faces.component.UIInput;
import javax.faces.component.behavior.ClientBehaviorHolder;
import javax.faces.context.FacesContext;


@FacesComponent("TreeTag")
public class UITree extends UIInput implements ClientBehaviorHolder
{
	
	public String getFamily(){
		return "tree";
	}
	
	@Override
	public boolean getRendersChildren(){
		return true;
	}
	
	public UITree(){
	}
	
	public Object saveState(FacesContext context){
		Object values[] = new Object[1];
		values[0] = super.saveState(context);
		return (values);
	}

	
	public void restoreState(FacesContext context,Object state){
		Object values[] = (Object[]) state;
		super.restoreState(context, values[0]);
	}
	
	@Override
	public String getDefaultEventName()
	{
		return "click";
	}

	@Override
	public Collection<String> getEventNames()
	{
		return Arrays.asList("click");
	}
	
	
}
